<template>
	<view class="userteam">
		<view class="teamlist">
			<leo-tree :data="treeData" @node-click="nodeClick"></leo-tree>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				treeData: [{
					id: 10,
					title: 'node22222',
					children: [{
							id: 11,
							title: 'Node 111',
							children: []
						},
						{
							id: 2,
							title: 'Node 2',
							children: [{
									id: 21,
									title: 'Node 2.1',
									children: []
								},
								{
									id: 22,
									title: 'Node 2.2',
									children: []
								}
							]
						}
					]
				}]
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.userteam {
		padding-top: 60rpx;

		.teamlist {
			width: 94%;
			background: #FFFFFF;
			border-radius: 5px;
			margin: 0 auto;
			padding-bottom: 50rpx;

			.team_item {
				display: flex;
				padding: 5%;
				display: flex;
				align-items: center;
				border-bottom: 1px solid #efefef;
				font-size: 14px;

				image {
					width: 100rpx;
					height: 100rpx;
					margin-right: 20rpx;
				}

				.userinfo {
					display: flex;
					flex-direction: column;
					flex: 4;
					font-weight: bold;
				}

				.level,
				.time_num {
					font-size: 12px;
					color: #777;
					font-weight: normal;
				}

				.time {
					display: flex;
					flex-direction: column;
					flex: 2;
				}
			}
		}
	}
</style>